﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleRest.Core.Exceptions
{
    public class ContentBodyMalformedException : WebExceptionBase
    {
        public ContentBodyMalformedException()
            : base("The content body specified was malformed.  Check the Content-Type request header and make sure it is set to the media type format of the request body.") { }

        public override System.Net.HttpStatusCode StatusCode
        {
            get { return System.Net.HttpStatusCode.BadRequest; }
        }

        public override string ErrorCode
        {
            get { return null; }
        }
    }
}
